﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Shsc.Net.Web.Extension
{
    public class BaseControllerActionInvoker : ControllerActionInvoker
    {
        protected override FilterInfo GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor)
        {
            FilterInfo retFilterInfo = base.GetFilters(controllerContext, actionDescriptor);
            retFilterInfo.ExceptionFilters.Add(new ExceptionHandleAttribute());
            return retFilterInfo;
        }
    }
}
